<?php
    #Include the connect.php file
    include ($_SERVER['DOCUMENT_ROOT'].'/CTAN/models/TietMuc.php');
    //select: hanh vi mac dinh
    //$mabuoidien = $_REQUEST['mabuoidien'];
    $tietmuc = new tietmuc();
    $tietmuc->setMaTietMuc($_REQUEST['matietmuc']);;
    //$tietmuc->matietmuc = 1;
    $result = $tietmuc->danhSachNgheSiThamGia();
    while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
        $danhsachnghesi[] = array(
            'ma_nghe_si' => $row['ma_nghe_si'],
            'nghe_danh' => $row['nghe_danh']
        );
    }
    echo json_encode($danhsachnghesi, JSON_UNESCAPED_UNICODE);
?>